package com.demo.project_template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 帖子通知
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-08-20 11:48:57
 */
@Getter
@Setter
@TableName("t_post_notice")
@ApiModel(value = "PostNotice对象", description = "帖子通知")
public class PostNotice implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("id")
    private Long id;

    @ApiModelProperty("帖子id")
    @TableField("post_id")
    private Long postId;

    @ApiModelProperty("帖子图片")
    @TableField("post_picture")
    private String postPicture;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("用户昵称")
    @TableField("user_nick_name")
    private String userNickName;

    @ApiModelProperty("用户头像")
    @TableField("user_avater")
    private String userAvater;

    @ApiModelProperty("类型（1=点赞，2=评论）")
    @TableField("type")
    private String type;

    @ApiModelProperty("评论id")
    @TableField("comment_id")
    private Long commentId;

    @ApiModelProperty("状态（0=未读，1=已读）")
    @TableField("state")
    private String state;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
